package com.xin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled =true) //开启授权注解功能
public class SecurityStarter {

    public static void main(String[] args) {
        SpringApplication.run(SecurityStarter.class,args);
    }
}
